#include "GameEvents.h"
#include "GameMenu.h"
#include "GameManager.h"
#include "GameOver.h"
#include "GameLevel.h"

int g_iGameLevel = LEVEL_ONE;

void GameEvents::startFlipInterface(int iType)
{
	CCScene *pScene;
	if (iType == GAME_MENU)
	{
		pScene = CCTransitionFadeDown::create(1.0f, GameMenu::scene());
	}
	else if (iType == GAME_LEVEL)
	{
		pScene = CCTransitionSplitRows::create(1.0f, GameLevel::scene());
	}
	else if (iType == GAME_START)
	{
		pScene = CCTransitionCrossFade::create(1.0f, GameManager::scene());
	}
	else if (iType == GAME_OVER)
	{
		pScene = CCTransitionFlipX::create(1.0f, GameOver::scene());
	}
	else
		return;

	CCDirector::sharedDirector()->replaceScene(pScene);
}